﻿
/// <summary>
/// IO命令
/// </summary>
public class IOCmds {
    public const int WS_CONN_OPEN   = 1;       // 连接打开
    public const int WS_CONN_CLOSED = 2;       // 连接关闭
    public const int WS_CONN_ERROR  = 3;       // 连接关闭

    public const int SMSG_PING      = 10001;   // 服务器PING消息
    public const int CMSG_PONG      = 10003;   // 客户度响应的PONG消息
    public const int SMSG_LOGIN     = 10004;   // 服务器响应的登录消息
    public const int CMSG_LOGIN     = 10005;   // 客户端发送的登录消息

    public const int CMSG_CREATE_ROOM = 10006;  // 客户端发送的创建房间消息
    public const int SMSG_CREATE_ROOM = 10007;  // 服务器响应的创建房间消息
    public const int CMSG_JOIN_ROOM = 10008; // 客户端发送的加入房间消息
    public const int SMSG_JOIN_ROOM = 10009; // 服务器响应的加入房间消息
    public const int SMSG_PLAYER_JOIN_ROOM = 10010; // 服务器发送有玩家加入房间的消息
    public const int SMSG_SET_ROOM_INFO = 10011; // 服务器广播房间信息
	public const int CMSG_REQ_GAME_REPORTS = 10019; // 请求战报
	public const int SMSG_RESP_GAME_REPORTS = 10020; // 服务器返回战报

    public const int SMSG_SET_PLAYER_CARDS = 11000; // 发牌
	public const int CMSG_PLAYER_PLAY_CARD = 11001; // 玩家出手牌
	public const int SMSG_SET_PLAY_CARD_PLAYER = 11002; // 设置出牌玩家
	public const int SMSG_SET_PLAYED_CARD = 11004; // 玩家出牌
	public const int CMSG_PLAYER_PASS = 11005; // 玩家跳过
	public const int SMSG_PLAYER_PASS = 11006; // 玩家跳过
	public const int SMSG_DEALER_CHANGED = 11008; // 庄家改变
	public const int SMSG_SEND_NEW_CARD = 11010; // 给玩家补牌
	public const int SMSG_SET_CARD_NUM = 11016; // 设置剩余牌数量
	public const int SMSG_SET_ROUND_SETTEMENT = 11019; // 结算数据
	public const int CMSG_PLAYER_CONTINUE = 11021; // 玩家准备
	public const int SMSG_SET_PLAYER_READY = 11022; // 玩家就绪
    public const int SMSG_SET_ROOM_FINISHED = 11024; // 房间完结
    public const int CMSG_PLAYER_REQ_DESTROY_ROOM = 11026; // 用户申请解散房间
	public const int SMSG_SET_PLAYER_REQ_DROOM = 11027; // 服务器通知有人解散房间
	public const int CMSG_PLAYER_RESP_DESTROY_ROOM = 11028; // 用户响应解散房间请求
	public const int SMSG_SET_PLAYER_RESP_DROOM = 11029; // 玩家响应解散房间请求
    public const int SMSG_SET_PLAYER_OFFLINE = 11030; // 玩家离线
	public const int SMSG_SET_PLAYER_RECONNECT = 11031; // 玩家重连
	public const int SMSG_SET_PLAYER_ONLINE = 11032; // 玩家上线
	public const int SMSG_BROADCAST_MESSAGE = 11033; // 广播消息
	public const int CMSG_PLAYER_REQ_BROADCAST_MSG = 11034; // 广播消息
    public const int SMSG_SET_PLAYER_EXIT_ROOM = 11040; // 玩家退出房间
	public const int CMSG_PLAYER_CANCEL_READY = 11041; // 取消准备
	public const int SMSG_PLAYER_CANCEL_READY = 11042; //取消准备
}
